from pydub import AudioSegment
import os, re
import util.IO as RI

if __name__ == '__main__':
    root='D:\大二下\数据科学\带作业\差榜'
    file='3D歌手 - 超长雷雨，解暑降温 (全景3D).mp3'
    mp3 = AudioSegment.from_mp3(root+'\\'+file) # 打开mp3文件
    for i in range(105):
        mp3[i*20*1000+1:(i+1)*(20*1000)+1].export(root+'\\'+str(i+605)+'.mp3', format="mp3")
        RI.progressBar(i,105)
